.class public Lcom/estrongs/android/ui/dialog/d0;
.super Lcom/estrongs/android/ui/dialog/q;
.source "NameEditorDialog.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/ui/dialog/d0$c;
    }
.end annotation


# instance fields
.field a:Lcom/estrongs/android/ui/dialog/c0;

.field b:Landroid/widget/Button;

.field c:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    .locals 4

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/dialog/q;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x0

    .line 2
    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/d0;->a:Lcom/estrongs/android/ui/dialog/c0;

    const/4 v0, 0x0

    .line 3
    iput-boolean v0, p0, Lcom/estrongs/android/ui/dialog/d0;->c:Z

    .line 4
    new-instance v1, Lcom/estrongs/android/ui/dialog/c0;

    invoke-direct {v1, p1, p0, p3}, Lcom/estrongs/android/ui/dialog/c0;-><init>(Landroid/content/Context;Landroid/app/Dialog;Ljava/lang/String;)V

    iput-object v1, p0, Lcom/estrongs/android/ui/dialog/d0;->a:Lcom/estrongs/android/ui/dialog/c0;

    .line 5
    invoke-virtual {p0, p2}, Lcom/estrongs/android/ui/dialog/q;->setTitle(Ljava/lang/CharSequence;)V

    .line 6
    new-instance p2, Landroid/widget/LinearLayout;

    iget-object p3, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    invoke-direct {p2, p3}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 7
    invoke-virtual {p2, v0}, Landroid/widget/LinearLayout;->setFocusable(Z)V

    .line 8
    iget-object p3, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    const/high16 v1, 0x41a00000    # 20.0f

    invoke-static {p3, v1}, Les/fy;->a(Landroid/content/Context;F)I

    move-result p3

    .line 9
    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v2, -0x1

    const/4 v3, -0x2

    invoke-direct {v1, v2, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 10
    iput p3, v1, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    .line 11
    div-int/lit8 v2, p3, 0x2

    iput v2, v1, Landroid/widget/LinearLayout$LayoutParams;->topMargin:I

    .line 12
    iput p3, v1, Landroid/widget/LinearLayout$LayoutParams;->rightMargin:I

    .line 13
    iput p3, v1, Landroid/widget/LinearLayout$LayoutParams;->bottomMargin:I

    .line 14
    iget-object p3, p0, Lcom/estrongs/android/ui/dialog/d0;->a:Lcom/estrongs/android/ui/dialog/c0;

    invoke-virtual {p3}, Lcom/estrongs/android/ui/dialog/c0;->b()Landroid/view/View;

    move-result-object p3

    invoke-virtual {p2, p3, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 15
    iget-object p3, p0, Lcom/estrongs/android/ui/dialog/q;->mBodyView:Lcom/estrongs/android/ui/dialog/DialogRootLayout;

    invoke-virtual {p3}, Landroid/view/ViewGroup;->getPaddingLeft()I

    move-result p3

    .line 16
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/q;->mBodyView:Lcom/estrongs/android/ui/dialog/DialogRootLayout;

    invoke-virtual {v1, p3, v0, p3, v0}, Landroid/view/ViewGroup;->setPadding(IIII)V

    .line 17
    invoke-virtual {p0, p2}, Lcom/estrongs/android/ui/dialog/q;->setContentView(Landroid/view/View;)V

    const p2, 0x7f11029e

    .line 18
    invoke-virtual {p1, p2}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p2

    new-instance p3, Lcom/estrongs/android/ui/dialog/d0$a;

    invoke-direct {p3, p0}, Lcom/estrongs/android/ui/dialog/d0$a;-><init>(Lcom/estrongs/android/ui/dialog/d0;)V

    invoke-virtual {p0, p2, p3}, Lcom/estrongs/android/ui/dialog/q;->setConfirmButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/widget/Button;

    move-result-object p2

    iput-object p2, p0, Lcom/estrongs/android/ui/dialog/d0;->b:Landroid/widget/Button;

    const p2, 0x7f110299

    .line 19
    invoke-virtual {p1, p2}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p1

    new-instance p2, Lcom/estrongs/android/ui/dialog/d0$b;

    invoke-direct {p2, p0}, Lcom/estrongs/android/ui/dialog/d0$b;-><init>(Lcom/estrongs/android/ui/dialog/d0;)V

    invoke-virtual {p0, p1, p2}, Lcom/estrongs/android/ui/dialog/q;->setCancelButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/widget/Button;

    .line 20
    invoke-virtual {p0}, Lcom/estrongs/android/ui/dialog/q;->requestInputMethod()V

    return-void
.end method


# virtual methods
.method public a(Lcom/estrongs/android/ui/dialog/d0$c;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/d0;->a:Lcom/estrongs/android/ui/dialog/c0;

    invoke-virtual {v0, p1}, Lcom/estrongs/android/ui/dialog/c0;->a(Lcom/estrongs/android/ui/dialog/d0$c;)V

    return-void
.end method

.method public b(Z)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/d0;->a:Lcom/estrongs/android/ui/dialog/c0;

    invoke-virtual {v0, p1}, Lcom/estrongs/android/ui/dialog/c0;->a(Z)V

    return-void
.end method

.method public c(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Lcom/estrongs/android/ui/dialog/d0;->c:Z

    return-void
.end method

.method public show()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/d0;->a:Lcom/estrongs/android/ui/dialog/c0;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/c0;->c()V

    .line 2
    invoke-super {p0}, Lcom/estrongs/android/ui/dialog/q;->show()V

    return-void
.end method
